﻿Imports System
Imports System.Workflow.ComponentModel.Compiler

Namespace System.Workflow.ComponentModel
    <ActivityValidator(GetType(MethodBindValidator))> _
    Friend NotInheritable Class MethodBind
        Inherits MemberBind
        ' Methods
        Public Sub New()
        End Sub

        Public Sub New(ByVal name As String)
            MyBase.New(name)
        End Sub

        Public Overrides Function GetRuntimeValue(ByVal activity As Activity) As Object
            Throw New Exception(SR.GetString("Error_NoTargetTypeForMethod"))
        End Function

        Public Overrides Function GetRuntimeValue(ByVal activity As Activity, ByVal targetType As Type) As Object
            Throw New NotImplementedException
        End Function

        Public Overrides Sub SetRuntimeValue(ByVal activity As Activity, ByVal value As Object)
            Throw New Exception(SR.GetString("Error_MethodDataSourceIsReadOnly"))
        End Sub

    End Class
End Namespace

